package com.smart.stock.module;

public class GlobalConstant {
    /**
     * 启动项目不自动爬取数据，注释 ScheduleThread.jobProcess()
     */
    public static final String INDEX_NAME = "开盘价格涨幅抓取任务（交易时间执行）";
    public static final String DAILY_BASIC_NAME = "每日股票指标抓取任务（晚上1点执行）";
    public static final String DY_NAME = "雪球dy更新任务（下午3点后执行）";
    public static final String DYROE_NAME = "ROE,DY计算任务";
    public static final String FUND_HOLDERS_NAME = "基金持仓任务（下午3点后且DY状态为停止时执行）";
    public static final String YEAR_REPORT_NAME = "年报财务数据抓取任务（晚上12点执行）";
    public static final String CORE_SCHEDULE_NAME = "核心调度任务负责管理所有任务调度";
    public static final String FUND_HOLDERS_TOP_NAME = "前10大股东抓取任务（下午3点后执行）";
    public static final String STOCKCODE_NAME = "A股所有代码更新任务（晚上12点执行）";
    public static final String INFO_NAME = "股票详情数据抓取任务（下午3点后执行）";
    public static final String CLEAR_NAME = "清理任务（晚上12点执行）";
    public static final String DIVIDEND_NAME = "历史分红抓取任务（晚上1点执行）";

//  同花顺基本信息：http://basic.10jqka.com.cn/000001/
//  同花顺股价：http://stockpage.10jqka.com.cn/000001/
    public static final String URL_TUSHARE = "http://api.tushare.pro";
    public static final String URL_XUEQIU_HOLDERS = "https://stock.xueqiu.com/v5/stock/f10/cn/holders.json?symbol=%s&extend=true&page=1&size=40";

    public static final String URL_THS = "http://basic.10jqka.com.cn/%s/";
    public static String URL_THS_INDUSTRY_COOKIESTR = "td_cookie=3439392777; searchGuide=sg; v=A3FvGtANtBb7ahgCxSYtWiZ2gPYeXuXQj9KJ5FOGbThXep9qm671oB8imbXg";

    public static final String URL_THS_INDUSTRY_REFERRER = "http://q.10jqka.com.cn/thshy/index/field/199112";
    public static final String URL_THS_INDUSTRY1 = "http://q.10jqka.com.cn/thshy/index/field/199112/order/desc/page/1/ajax/1/";
    public static final String URL_THS_INDUSTRY2 = "http://q.10jqka.com.cn/thshy/index/field/199112/order/desc/page/2/ajax/1/";
    public static final String URL_THS_STOCK_TODAY = "http://q.10jqka.com.cn/index/index/board/all/field/zdf/order/desc/page/%s/ajax/1/";
    public static final String URL_XUEQIU_INFO = "https://stock.xueqiu.com/v5/stock/quote.json?symbol=%s&extend=detail";
    public static final String URL_XUEQIU_QUOTE = "https://stock.xueqiu.com/v5/stock/quote.json?symbol=%s&extend=detail";
    public static final String URL_CSINDEXINDUSTRY = "http://www.csindex.com.cn/uploads/downloads/other/files/zh_CN/ZzhyflWz.zip";
    public static final String URL_CSINDEXINDUSTRY_REFERRER = "http://www.csindex.com.cn/zh-CN/downloads/industry-class";
    public static final String URL_EASTMONEYDIVIDEND = "http://dcfm.eastmoney.com/EM_MutiSvcExpandInterface/api/js/get?type=DCSOBS&token=%s&p=1&ps=50&sr=-1&st=ReportingPeriod&filter=&cmd=%s";
    public static final String URL_EASTMONEYDIVIDEND_REFERRER = "http://data.eastmoney.com/yjfp/detail/%s.html";
    public static final String URL_THSDIVIDEND = "http://basic.10jqka.com.cn/16/%s/bonus.html";
    public static final String URL_SINAINDEX = "http://hq.sinajs.cn/list=%s";
    public static final String URL_TENCENTINDEX = "http://qt.gtimg.cn/q=%s";
    public static final String URL_FUNDHOLDER = "https://stock.xueqiu.com/v5/stock/f10/cn/org_holding/detail.json?symbol=%s&extend=true";
    public static final String URL_TRADINGDATE = "http://www.szse.cn/api/report/exchange/onepersistenthour/monthList";
    public static final String URL_TRADINGDATE_CALL = "http://www.szse.cn/disclosure/index.html";

    public static final String URL_WORKDAY = "http://api.goseek.cn/Tools/holiday?date=%s";
    public static final String URL_HISTORY_DIVIDEND_RATE = "http://basic.10jqka.com.cn/16/%s/bonus.html";
    public static final String URL_HISTORY_ROE = "http://basic.10jqka.com.cn/api/stock/export.php?export=main&type=year&code=%s";
    public static final String URL_HISTORY_ROE_REFERRER = "http://basic.10jqka.com.cn/%s/finance.html";
    public static final String FILEPATH_HISTORY_ROE = "./data/%s.xls";

    public static final String FILEPATH_CLEAR = "./data/";
    public static final String FILEPATH_CSINDEXINDUSTRY = "./download/";
    public static final String FILEPATH_CSINDEXINDUSTRY_FILE = "./download/cicslevel2.xls";

    public static final String SPIDER_USEAGENT = "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Mobile Safari/537.36";

    public static final String TREND_OF_UPWARD = "up";
    public static final String TREND_OF_DOWNWARD = "down";

    public static final String TOKEN_XUEQIU="b0b8db1b94f121ba745a55e4c5b6cd0c1d8b4aca";
    public static final String TOKEN_EASTMONEY="894050c76af8597a853f5b408b759f5d";
    public static final String TOKEN_TUSHARE="21370f126e68cdbeb1b100239f46a8efcd4073f30cf11845adc63a58";

    //指数
    public static final String INDEX_SH="SH000001";
    public static final String INDEX_SH_NAME="上证指数";
    public static final String INDEX_SZ="SZ399001";
    public static final String INDEX_SZ_NAME="深证指数";
    public static final String INDEX_CYB="SZ399006";
    public static final String INDEX_CYB_NAME="创业板指数";
    public static final String INDEX_KCB="SH000688";
    public static final String INDEX_KCB_NAME="科创板指数";

    //前缀
    public static final String INDEX_CYB_PREFIX="300";
    public static final String INDEX_KYB_PREFIX="688";
    public static final String INDEX_ST_NAME_PREFIX="ST";
    public static final String INDEX_ST_NAME_START_PREFIX="*ST";

    public static final String URL_INDEX_SH="https://stock.xueqiu.com/v5/stock/chart/kline.json?symbol=SH000001&begin=%s&period=day&type=before&count=-284&indicator=kline,pe,pb,ps,pcf,market_capital,agt,ggt,balance";
    public static final String URL_INDEX_SZ="https://stock.xueqiu.com/v5/stock/chart/kline.json?symbol=SZ399001&begin=%s&period=day&type=before&count=-284&indicator=kline,pe,pb,ps,pcf,market_capital,agt,ggt,balance";
    public static final String URL_INDEX_CYB="https://stock.xueqiu.com/v5/stock/chart/kline.json?symbol=SZ399006&begin=%s&period=day&type=before&count=-284&indicator=kline,pe,pb,ps,pcf,market_capital,agt,ggt,balance";
    public static final String URL_INDEX_KCB="https://stock.xueqiu.com/v5/stock/chart/kline.json?symbol=SH000688&begin=%s&period=day&type=before&count=-284&indicator=kline,pe,pb,ps,pcf,market_capital,agt,ggt,balance";
//    public static final String XUEQIU_COOKIE_STR="device_id=06104b2c525b670661f0cbb533ffa8da; s=ci12wr2sbo; xq_is_login=1; u=1686036676; xq_a_token=6c67243edfc0bee277e784e2666ef84afc748a74; xqat=6c67243edfc0bee277e784e2666ef84afc748a74; xq_id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1aWQiOjE2ODYwMzY2NzYsImlzcyI6InVjIiwiZXhwIjoxNjI5Njc0OTA2LCJjdG0iOjE2MjcwODI5MDY3ODUsImNpZCI6ImQ5ZDBuNEFadXAifQ.AAnPrcojY4UUsRoxzQjmq20BafshkTbUo4wzl-NBnly3VAuzOwRw59Vo4Dq_-aasAaPhIr6XadS0W9TGfYJPNQldHwS0HjnPGAVx7Iej5AJnJ62R1F9pQHhWmHTNguAoBRn4w8g5O24UZPsEerUV2Lho0Gl8W-AvMqOTkEiu1G_xa8shMPOUnlPiVy0o0Iv3BpGyQbbmFHEy84go4_Bja1M6vSWuUTlVsahfKcGUCEJpwnEvNkHt_DwLbn37-GCKunmTUUzAM9xP1ZtqltUKTKlRkqAUY1lePI1rhLVBr6o14xV5ZJ5KNM6wxItkLHK9i2UK-WOmkXFEVkn4dOiXtQ; xq_r_token=700beac3205e50760562d85bd016f2100e4245bb; Hm_lvt_1db88642e346389874251b5a1eded6e3=1625029500,1625635847,1627082907; snbim_minify=true; bid=d6f78282805d3f3ee797c904353451b0_krgz5x5o; Hm_lpvt_1db88642e346389874251b5a1eded6e3=1627083125";
    public static final String XUEQIU_COOKIE_STR="device_id=06104b2c525b670661f0cbb533ffa8da; s=ci12wr2sbo; xq_is_login=1; u=1686036676; xq_a_token=6c67243edfc0bee277e784e2666ef84afc748a74; xqat=6c67243edfc0bee277e784e2666ef84afc748a74; xq_id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1aWQiOjE2ODYwMzY2NzYsImlzcyI6InVjIiwiZXhwIjoxNjI5Njc0OTA2LCJjdG0iOjE2MjcwODI5MDY3ODUsImNpZCI6ImQ5ZDBuNEFadXAifQ.AAnPrcojY4UUsRoxzQjmq20BafshkTbUo4wzl-NBnly3VAuzOwRw59Vo4Dq_-aasAaPhIr6XadS0W9TGfYJPNQldHwS0HjnPGAVx7Iej5AJnJ62R1F9pQHhWmHTNguAoBRn4w8g5O24UZPsEerUV2Lho0Gl8W-AvMqOTkEiu1G_xa8shMPOUnlPiVy0o0Iv3BpGyQbbmFHEy84go4_Bja1M6vSWuUTlVsahfKcGUCEJpwnEvNkHt_DwLbn37-GCKunmTUUzAM9xP1ZtqltUKTKlRkqAUY1lePI1rhLVBr6o14xV5ZJ5KNM6wxItkLHK9i2UK-WOmkXFEVkn4dOiXtQ; xq_r_token=700beac3205e50760562d85bd016f2100e4245bb; Hm_lvt_1db88642e346389874251b5a1eded6e3=1625029500,1625635847,1627082907,1627313118; snbim_minify=true; bid=d6f78282805d3f3ee797c904353451b0_krgz5x5o; Hm_lpvt_1db88642e346389874251b5a1eded6e3=1627313163; is_overseas=0";

    public static final int DATE_MINUS=90;
    public static final int DATE_PLUS=30;

    //蜡烛图形态判断
    public static final int isShapeOfHammer=5;//锤子线引线长度/实体长度的倍数,判断是否为有效的锤子线
    public static final int isShapeOfHangOneself=5;//上吊线线引线长度/实体长度的倍数,判断是否为有效的上吊线


}
